package org.martin.snsrs.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="user")
public class User {
	private Integer userID;
	
	private Integer userPermission;
	
	private String nickname;
	
	private String username;
	
	private String userPass;
	
	private String userPic;
	
	@Column(name="user_password")
	public String getUserPass() {
		return userPass;
	}
	public void setUserPass(String userPass) {
		this.userPass = userPass;
	}
	@Id
	@GeneratedValue
	@Column(name="user_id")
	public Integer getUserID() {
		return userID;
	}
	public void setUserID(Integer userID) {
		this.userID = userID;
	}
	
	@Column(name="user_permission")
	public Integer getUserPermission() {
		return userPermission;
	}

	public void setUserPermission(Integer userPermission) {
		this.userPermission = userPermission;
	}
	
	@Column(name="user_nickname")
	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
	@Column(name="username")
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	
	@Column(name="user_pic")
	public String getUserPic() {
		return userPic;
	}
	public void setUserPic(String userPic) {
		this.userPic = userPic;
	}
	
	
}
